\hypertarget{classdev_1_1net_1_1_tcp_connection_stream}{}\section{dev\+:\+:net\+:\+:Tcp\+Connection\+Stream Class Reference}
\label{classdev_1_1net_1_1_tcp_connection_stream}\index{dev\+::net\+::\+Tcp\+Connection\+Stream@{dev\+::net\+::\+Tcp\+Connection\+Stream}}


Tcp连接流  




{\ttfamily \#include $<$Tcp\+Connection\+Stream.\+hpp$>$}

Inheritance diagram for dev\+:\+:net\+:\+:Tcp\+Connection\+Stream\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{classdev_1_1net_1_1_tcp_connection_stream}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
size\+\_\+t \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_a89e183a86ce676e7c84a52acad657cb6}{capacity} (void)
\begin{DoxyCompactList}\small\item\em 获取流能存储的数据大小 \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_a3ae773ddc1f353c00cebf98eb1a9d19e}{size} (void)
\begin{DoxyCompactList}\small\item\em 获取流中数据大小 \end{DoxyCompactList}\item 
size\+\_\+t \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_a09c07ca4dd2290ba29c581f061e9cb93}{space} (void)
\begin{DoxyCompactList}\small\item\em 获取流剩余存储空间 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a22fb9592a27f6d85cf0fe9f275ce96d4}{}typedef \hyperlink{classdev_1_1net_1_1_tcp_connection_stream}{Tcp\+Connection\+Stream} {\bfseries self}\label{classdev_1_1net_1_1_tcp_connection_stream_a22fb9592a27f6d85cf0fe9f275ce96d4}

\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_af6dcac8d6517ee12ce82c9267249a353}{}{\bfseries Tcp\+Connection\+Stream} (\hyperlink{classdev_1_1net_1_1_socket}{Socket} \&sock, size\+\_\+t \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_a3ae773ddc1f353c00cebf98eb1a9d19e}{size})\label{classdev_1_1net_1_1_tcp_connection_stream_af6dcac8d6517ee12ce82c9267249a353}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a8ef66dedc5c080786e6008b5b9553e50}{}{\bfseries Tcp\+Connection\+Stream} (\hyperlink{classdev_1_1net_1_1_socket}{Socket} \&sock, boost\+::shared\+\_\+array$<$ char $>$ buff, size\+\_\+t \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_a3ae773ddc1f353c00cebf98eb1a9d19e}{size})\label{classdev_1_1net_1_1_tcp_connection_stream_a8ef66dedc5c080786e6008b5b9553e50}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a36bec7cd4b147e05316930fccdeb214d}{}void \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_a36bec7cd4b147e05316930fccdeb214d}{reset} (void)\label{classdev_1_1net_1_1_tcp_connection_stream_a36bec7cd4b147e05316930fccdeb214d}

\begin{DoxyCompactList}\small\item\em 重置流 \end{DoxyCompactList}\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a17a557385b5af582c98bdd525a333cf6}{}size\+\_\+t {\bfseries read} (char $\ast$buf, size\+\_\+t length)\label{classdev_1_1net_1_1_tcp_connection_stream_a17a557385b5af582c98bdd525a333cf6}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_ae94584be5275ff8da7f220223beb965a}{}size\+\_\+t {\bfseries write} (const char $\ast$buf, size\+\_\+t length)\label{classdev_1_1net_1_1_tcp_connection_stream_ae94584be5275ff8da7f220223beb965a}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a4f00f30ffc87897772183c70b4f3abd4}{}size\+\_\+t {\bfseries peek} (char $\ast$buf, size\+\_\+t length)\label{classdev_1_1net_1_1_tcp_connection_stream_a4f00f30ffc87897772183c70b4f3abd4}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a28bb2de60e94afafaf5f66710a9442c6}{}size\+\_\+t {\bfseries skip} (size\+\_\+t length)\label{classdev_1_1net_1_1_tcp_connection_stream_a28bb2de60e94afafaf5f66710a9442c6}

\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a88bcc7529e50e85e41b173601392c2d3}{}{\footnotesize template$<$typename T $>$ }\\\hyperlink{classdev_1_1net_1_1_tcp_connection_stream}{self} \& \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_a88bcc7529e50e85e41b173601392c2d3}{operator$>$$>$} (T \&x)\label{classdev_1_1net_1_1_tcp_connection_stream_a88bcc7529e50e85e41b173601392c2d3}

\begin{DoxyCompactList}\small\item\em $>$$>$运算符重载,读到基础类型时请先判断长度是否匹配 \end{DoxyCompactList}\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_af0a0f8127849b38d0ba60cb8505ca75d}{}{\footnotesize template$<$typename T $>$ }\\\hyperlink{classdev_1_1net_1_1_tcp_connection_stream}{self} \& \hyperlink{classdev_1_1net_1_1_tcp_connection_stream_af0a0f8127849b38d0ba60cb8505ca75d}{operator$<$$<$} (T \&x)\label{classdev_1_1net_1_1_tcp_connection_stream_af0a0f8127849b38d0ba60cb8505ca75d}

\begin{DoxyCompactList}\small\item\em $<$$<$运算符重载,写入时请先判断流时候有足够的空间 \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_ae74c00494781359ecb0a35d563776b6b}{}\hyperlink{classdev_1_1net_1_1_socket}{Socket} \& {\bfseries sock\+\_\+}\label{classdev_1_1net_1_1_tcp_connection_stream_ae74c00494781359ecb0a35d563776b6b}

\end{DoxyCompactItemize}
\subsection*{Friends}
\begin{DoxyCompactItemize}
\item 
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a43fe1eaa6c6b4d4ecbb2ba361d312b66}{}class {\bfseries Tcp\+Connection}\label{classdev_1_1net_1_1_tcp_connection_stream_a43fe1eaa6c6b4d4ecbb2ba361d312b66}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Tcp连接流 

\subsection{Member Function Documentation}
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a89e183a86ce676e7c84a52acad657cb6}{}\index{dev\+::net\+::\+Tcp\+Connection\+Stream@{dev\+::net\+::\+Tcp\+Connection\+Stream}!capacity@{capacity}}
\index{capacity@{capacity}!dev\+::net\+::\+Tcp\+Connection\+Stream@{dev\+::net\+::\+Tcp\+Connection\+Stream}}
\subsubsection[{capacity(void)}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t dev\+::net\+::\+Tcp\+Connection\+Stream\+::capacity (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1net_1_1_tcp_connection_stream_a89e183a86ce676e7c84a52acad657cb6}


获取流能存储的数据大小 

\begin{DoxyReturn}{Returns}
size\+\_\+t 
\end{DoxyReturn}
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a3ae773ddc1f353c00cebf98eb1a9d19e}{}\index{dev\+::net\+::\+Tcp\+Connection\+Stream@{dev\+::net\+::\+Tcp\+Connection\+Stream}!size@{size}}
\index{size@{size}!dev\+::net\+::\+Tcp\+Connection\+Stream@{dev\+::net\+::\+Tcp\+Connection\+Stream}}
\subsubsection[{size(void)}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t dev\+::net\+::\+Tcp\+Connection\+Stream\+::size (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1net_1_1_tcp_connection_stream_a3ae773ddc1f353c00cebf98eb1a9d19e}


获取流中数据大小 

\begin{DoxyReturn}{Returns}
size\+\_\+t 
\end{DoxyReturn}
\hypertarget{classdev_1_1net_1_1_tcp_connection_stream_a09c07ca4dd2290ba29c581f061e9cb93}{}\index{dev\+::net\+::\+Tcp\+Connection\+Stream@{dev\+::net\+::\+Tcp\+Connection\+Stream}!space@{space}}
\index{space@{space}!dev\+::net\+::\+Tcp\+Connection\+Stream@{dev\+::net\+::\+Tcp\+Connection\+Stream}}
\subsubsection[{space(void)}]{\setlength{\rightskip}{0pt plus 5cm}size\+\_\+t dev\+::net\+::\+Tcp\+Connection\+Stream\+::space (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}\label{classdev_1_1net_1_1_tcp_connection_stream_a09c07ca4dd2290ba29c581f061e9cb93}


获取流剩余存储空间 

\begin{DoxyReturn}{Returns}
size\+\_\+t 
\end{DoxyReturn}


The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
dev/dev/net/Tcp\+Connection\+Stream.\+hpp\item 
dev/src/net/Tcp\+Connection\+Stream.\+cpp\end{DoxyCompactItemize}
